#pragma once

#include <vector>
#include "TrueText/Types.h"

namespace TrueText {

struct Span
{
  Span() 
  { }
  
  Span(int _x, int _y, int _width, int _coverage)
	: x(_x)
	, y(_y)
	, width(_width)
	, coverage(_coverage) 
  { }

  int x, y, width, coverage;
};

typedef std::vector<Span> Spans;

// Extends rectangle bounds to fit every span in the given vector
Rectangle IncludeSpans(const Spans& spans, const Rectangle& rect);

}